package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.Order;
import com.example.whatrubbish.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("OrderMapper")
public interface OrderMapper {
    Long selectByConditionCount(Criteria criteria);

    List<Order> selectByCondition(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
}